package com.jinjia.ordersys.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description:
 * @Param:
 * @return:
 * @Author: fenghouzhi
 * @Date: 3:28 PM 2018/10/11
 */
@Data
@Table(name = "t_goods")
@ApiModel(value = "商品明细对象")
public class Goods implements Serializable {

    private static final long serialVersionUID = -4869594085374385813L;

    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "id")
    @ApiModelProperty(value = "商品明细id", required = true)
    private Long id;

    @Column(name = "goods_name")
    @ApiModelProperty(value = "商品名称", required = true)
    private String goodsName;

    @Column(name = "goods_quantity")
    @ApiModelProperty(value = "商品数量", required = true)
    private String goodsQuantity;

    @Column(name = "order_id")
    @ApiModelProperty(value = "所属orderId")
    private Long orderId;

}
